<table width="100%"  border="0" cellspacing="1" cellpadding="6">
  <tr>
    <td colspan="3">		
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="49%" valign="top">{$PRINT_CONTENT}</td>
        <td width="51%" align="right" valign="top"><strong>Website:</strong> http://{$WEB_NAME}<br />
          <strong>Email:</strong>support@{$WEB_NAME}</td>
      </tr>
      <tr>
        <td colspan="2" align="center">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" align="center" style="text-transform:uppercase; font-size:18px; font-weight:bold">&#272;&#417;n h&agrave;ng </td>
      </tr>
    </table>
	<br />
    {assign var="stt" value="0"}
    <table width="90%" border="0" cellspacing="1" cellpadding="5" bgcolor="#CCCCCC" align="center">
      <tr>

        <td width="6%" height="25" align="center" bgcolor="#FFFFFF"><strong>STT</strong></td>
        <td height="25" bgcolor="#FFFFFF"><strong>&nbsp;T&#234;n s&#7843;n ph&#7849;m</strong></td>
        <td width="14%" height="25" align="right" nowrap="nowrap" bgcolor="#FFFFFF"><strong>&nbsp;&#272;&#417;n gi&#225; (VN&#272;) </strong></td>
        <td width="6%" height="25" align="center" nowrap="nowrap" bgcolor="#FFFFFF"><strong>&nbsp;S&#7889; l&#432;&#7907;ng</strong></td>

        <td width="14%" height="25" align="right" nowrap="nowrap" bgcolor="#FFFFFF"><strong>&nbsp;Th&#224;nh ti&#7873;n (VN&#272;)</strong></td>
        <td width="10%" height="25" align="center" bgcolor="#FFFFFF"><strong>B&#7843;o h&agrave;nh</strong> </td>
      </tr>
      
      {foreach from=$bcats item=cat}
      	{if $cat.item_price}
        	{assign var="stt" value=$stt+1}
          <tr>
            <td width="6%" height="25" align="center" bgcolor="#FFFFFF">{$stt}</td>
            <td height="25" bgcolor="#FFFFFF">{$cat.item_name}</td>
            <td width="14%" height="25" align="right" nowrap="nowrap" bgcolor="#FFFFFF"><font color="#CC0000">{$cat.item_price}</font></td>
            <td width="6%" height="25" align="center" bgcolor="#FFFFFF">1</td>
    
            <td width="14%" height="25" align="right" nowrap="nowrap" bgcolor="#FFFFFF"><font color="#CC0000">{$cat.item_price}</font></td>
            <td width="10%" height="25" align="center" bgcolor="#FFFFFF">{$cat.item_warranty}</td>
          </tr>
        {/if}
     {/foreach}
       
      <tr>
        <td height="25" colspan="4" align="right" bgcolor="#FFFFFF">T&#7893;ng ti&#7873;n thanh to&#225;n</td>

        <td height="25" align="right" nowrap="nowrap" bgcolor="#FFFFFF"><font color="#CC0000"><strong>{$total_price}</strong></font></td>
        <td height="25" align="left" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
      
      
      <tr>
        <td height="25" colspan="6" align="center" bgcolor="#FFFFFF"><strong>H&agrave; N&#7897;i: </strong>
             {$wday}  Ng&#224;y {$day} - Th&#225;ng  {$mon} - N&#259;m {$year}. <strong>V&#224;o l&#250;c: </strong>{$h} gi&#7901; - {$i} ph&#250;t - {$s} gi&#226;y</td>
      </tr>
    </table>
    {if $stt == 0}
    	<script>
			alert("Bạn chưa chọn cấu hình cho mình!");
			window.close();
		</script>
    {/if}
	<br />
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="687" valign="top"><p>Ghi ch&uacute;   			&nbsp; <br />
          - Thu&#7871; VAT: Gi&aacute; tr&ecirc;n &#273;&atilde;   			bao g&#7891;m thu&#7871; VAT<br />
    
          - B&#7843;o h&agrave;nh:..................................................<br />
          - L&#7855;p &#273;&#7863;t v&agrave; v&#7853;n chuy&#7875;n:..............................<br />
        - Thanh to&aacute;n:...............................................</p>
    
        </td>
        <td width="416" height="115" rowspan="5" align="center" valign="top"><p>Kh&aacute;ch h&agrave;ng k&yacute; <br />
      (<em>Ghi r&otilde; h&#7885; t&ecirc;n v&agrave; &#273;&oacute;ng d&#7845;u n&#7871;u c&oacute;</em>)</p>
    
        </td>
      </tr>
    </table>
</td>
  </tr>
  <tr>
    <td width="58%" align="right">&nbsp;<a onclick="window.print();return false"><img src="style/img/printer.png" width="40" height="40" border="0" /> In trang này</a>&nbsp;&nbsp;</td>
    <td width="4%" valign="bottom">&nbsp;</td>
    <td width="38%" valign="bottom">[ <a onclick="window.close();return false">Đóng trang này lại</a> ]</td>

  </tr>
</table>